package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.MajorMapper;
import com.xpc.pojo.Major;
import com.xpc.service.IMajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 专业表(Major)表服务实现类
 *
 * @author makejava
 * @since 2022-04-25 22:26:03
 */
@Service("majorService")
public class MajorServiceImpl extends ServiceImpl<MajorMapper, Major> implements IMajorService {
    @Autowired
    private MajorMapper majorMapper;

    @Override
    public Page<Major> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        majorMapper.selectPage(page, null);
        return page;
    }
}

